package com.app.internationaltravel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;


@Data
@TableName("t_user_gold")
@NoArgsConstructor
public class UserGold {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer uid;
    /**
    * 类型：1.新人注册、2.签到、3.回答问题、4.发布问题、5.学习视频 6.打赏、7.悬赏*/
    private Integer type;
    private Integer gold;
    private String info;
    private Date ctime;

    public UserGold(Integer uid, Integer type, Integer gold, String info) {
        this.uid = uid;
        this.type = type;
        this.gold = gold;
        this.info = info;
        this.ctime=new Date();
    }
}
